package com.xiaotu.mapper;

import com.xiaotu.pojo.Authority;
import com.xiaotu.pojo.Customer;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface CustomerMapper {
    public List<Customer> findAll();
    public Customer findById(Integer id);
    public Customer findByUserName(String username);
    public Boolean deleteById(Integer id);
    public Boolean updateById(Customer customer);
    public Boolean insertCustomer(Customer customer);
    public List<Authority> findAuthorityByUsername(String username);
}
